{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新信息</title>
</head>
<body>
<form action="/app001/updateuser/" method="post">
    用户id:<input type="text" name="user_id" readonly value="{{ userinfo_data.user_id }}"><br>
    用户名:<input type="text" name="user_name" value="{{ userinfo_data.user_name }}"><br>
    用户密码：<input type="password" name="user_password" value="{{ userinfo_data.user_password }}"><br>
    <hr>
    身份证：
    <select id="card" name="card_num">
        <option id="card_num">{{ userinfo_data.idcard.idcard_num}}</option>
        {% for cardnum in card %}
            <option id="card_num">{{ cardnum }}</option>
        {% endfor %}
    </select>&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" onclick="method01()">添加身份证</a>
    <br>
    <input type="submit" value="更新">
    <input type="reset" value="重置">
</form>
<script type="text/javascript" src="{% static 'js/json2.js' %}"></script>
<script type="text/javascript" src="{% static 'js/jquery-3.3.1.js' %}"></script>
<script type="text/javascript">
    function method01() {
        var height = 100;
        var width = 300;
        var top = Math.round((window.screen.height - height) / 2);
        var left = Math.round((window.screen.width - width) / 2);
        window.open('/app001/add_card/', '',"height=" + height + ", width=" + width + ", top=" + top + ", left= " + left + ", toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=yes, status=no");

    }
</script>
</body>
</html>